<%@tag pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="consignum" tagdir="/WEB-INF/tags"%>
<%@attribute name="id"%>
<%@attribute name="style"%>
<%@attribute name="label"%>
<%@attribute name="value"%>
<%@attribute name="styleClass"%>
<%@attribute name="valueSelect" type="java.util.List"%>
<%@attribute name="rendered" type="java.lang.Boolean"%>
<c:if test="${empty rendered or rendered eq true}">
	<section>
		<c:if test="${not empty valueSelect}">
		 <c:set var="encontrouSelecionado" value="false" />
		 <c:forEach var="var" items="${valueSelect}">
			<c:if test="${var eq value}" var="flagVerificao">
				<div class="inline-group">
					<label class="checkbox">
						<input type="checkbox" checked="checked" name="${id}" id="${id}" value="${value}"> <i></i><c:out value="${label}" />
					</label>
		 		 </div>
		 		 <c:set var="encontrouSelecionado" value="true" />
			</c:if>
		  </c:forEach>
		 	<c:if test="${not encontrouSelecionado}">
			 	<div class="inline-group">
					<label class="checkbox">
					<input type="checkbox" name="${id}" id="${id}" value="${value}"> <i></i><c:out value="${label}" />
					</label>
				</div>
		 	</c:if>
		</c:if>
		<c:if test="${empty valueSelect}">
			<div class="inline-group">
				<label class="checkbox">
				<input type="checkbox" name="${id}" id="${id}" value="${value}"> <i></i><c:out value="${label}" />
				</label>
			</div>
		</c:if>
	</section>
</c:if>



